package com.powernode.ssm.springAnalysis.a01.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * 用来监听发布的事件
 */
@Component
@Slf4j
public class TestListenEvent1 {

    @EventListener
    public void listen(TestEvent1 event1){
        log.info("监听到事件,{}",event1);
        log.info("测试打印发送短信事件");
    }
}
